package io;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo_1 {
    public static void main(String[] args) throws IOException {
        File file = new File("fos.dat");
        FileOutputStream fos = new FileOutputStream(file);
        fos.write(255);
        fos.write(0);
        System.out.println("写入完毕");
        fos.close();
    }
}
